package kr.co.infovil.calendar.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import kr.co.infovil.calendar.dao.CalendarDao;
import kr.co.infovil.calendar.entity.CalendarDTO;
import kr.co.infovil.calendar.entity.GroupDTO;
import kr.co.infovil.calendar.entity.SearchGroupMemberListDTO;

@Service
public class CalendarServiceImpl implements CalendarService {
	
	@Autowired
	private CalendarDao calendarDao;
	
	@Override
	public int createSchedule(CalendarDTO calendarDto) {
		return calendarDao.createSchedule(calendarDto);
	}

	@Override
	public int getCountSchedule() {
		return calendarDao.getCountSchedule();
	}

	@Override
	public List<CalendarDTO> getScheduleList(int member_no) {
		return calendarDao.getScheduleList(member_no);
	}

	@Override
	public void dropSchedule(HashMap<String, String> map) {
		calendarDao.dropSchedule(map);
	}

	@Override
	public void resizeSchedule(HashMap<String, String> map) {
		calendarDao.resizeSchedule(map);
		
	}

	@Override
	public void removeSchedule(int id) {
		calendarDao.removeSchedule(id);
	}

	@Override
	public CalendarDTO getSchedule(int id) {
		return calendarDao.getSchedule(id);
	}

	@Override
	public int updateSchedule(CalendarDTO calendarDto) {
		return calendarDao.updateSchedule(calendarDto);
	}

	@Override
	public List<GroupDTO> getGroupList() {
		return calendarDao.getGroupList();
	}

	@Override
	public int updateTitle(HashMap<String, String> map) {
		return calendarDao.updateTitle(map);
	}

	@Override
	public List<CalendarDTO> getGroupScheduleList(int group_no) {
		return calendarDao.getGroupScheduleList(group_no);
	}

	@Override
	public GroupDTO getGroupInfo(int UserNum) {
		return calendarDao.getGroupInfo(UserNum);
	}

	@Override
	public List<CalendarDTO> searchSchedule(HashMap<String, String> map) {
		return calendarDao.searchSchedule(map);
	}
}
